<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>高亮显示</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .wrap{
            width: 1600px;
        }
        .wrap ul{
            list-style: none;
        }
        .wrap ul li{
            margin-left: 10px;
            float: left;
        }
    </style>
</head>
<script src="./jquery-3.2.1.min.js"></script>
<body>
    <div class="wrap">
        <ul>
            <li>
                <img src="./images/scenery1.jpg">
            </li>
            <li>
                <img src="./images/scenery2.jpg">
            </li>
            <li>
                <img src="./images/scenery3.jpg">
            </li>
            <li>
                <img src="./images/scenery4.jpg">
            </li>
            <li>
                <img src="./images/scenery5.jpg">
            </li>
            <li>
                <img src="./images/scenery6.jpg">
            </li>
        </ul>
    </div>
    <script>
        $(function() {
 	            $(".wrap li").hover(function() {
 	                $(this).siblings().stop().fadeTo(400, 0.5);
 	            }, function() {
 	                $(this).siblings().stop().fadeTo(400, 1);
 	            })
 	        });

    </script>
</body>
</html>